/* pages/user/mycoupon.scss */

// 页面基础样式
page {
    background: #fcfaee;
}

view {
    box-sizing: border-box;
}

// 页面容器
.container {
    padding-top: 96rpx;

    // 列表空状态样式
    .none_ctr {
        display: flex;
        justify-content: center;
        padding: 40rpx 0;
    }

    .none_txt {
        text-align: center;
        color: #999;
        font-size: 28rpx;
    }

    // 分享优惠券展示区
    .list {
        padding: 30rpx 30rpx;

        .item {
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 40rpx 30rpx;
            background: #fcfaee;
            box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(185, 98, 33, 0.2);
            border-radius: 20rpx;
            margin-bottom: 30rpx;
            position: relative;
            overflow: hidden;

            .status {
                position: absolute;
                bottom: 10rpx;
                right: 5rpx;

                .status {
                    width: 120rpx;
                    height: 92rpx;
                }
            }

            .left_pic {
                position: relative;
                width: 200rpx;
                height: 200rpx;
                position: relative;

                .pic {
                    width: 200rpx;
                    height: 200rpx;
                }

                .price_box {
                    position: absolute;
                    width: 80%;
                    height: 120rpx;
                    top: 0;
                    left: 50%;
                    transform: translateX(-50%);
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    ._price {
                        font-size: 60rpx;
                        vertical-align: bottom;
                        color: #f9500f;
                    }

                    .t {
                        font-size: 24rpx;
                        vertical-align: bottom;
                        margin-top: 30rpx;
                        color: #f9500f;
                    }
                }
            }

            .right_info {
                width: calc(100% - 220rpx);

                .title {
                    font-weight: 500;
                    font-size: 32rpx;
                    color: #333333;
                    margin-bottom: 4rpx;
                }

                .title2 {
                    font-weight: 400;
                    font-size: 28rpx;
                    color: #666666;
                    margin-bottom: 4rpx;
                }

                .time {
                    font-weight: 400;
                    font-size: 24rpx;
                    color: #d43e22;
                    margin-bottom: 16rpx;
                }

                .btn_list {
                    display: flex;
                    align-items: center;

                    .btn {
                        width: 148rpx;
                        height: 48rpx;
                        line-height: 48rpx;
                        background: #dc4031;
                        border-radius: 30rpx;
                        font-weight: 400;
                        font-size: 24rpx;
                        color: #ffffff;
                        text-align: center;

                        &:not(:last-of-type) {
                            margin-right: 20rpx;
                        }

                        &.share {
                            background-color: #139016;
                            position: relative;

                            button {
                                width: 100%;
                                height: 100%;
                                position: absolute;
                                top: 50%;
                                left: 50%;
                                transform: translate(-50%, -50%);
                                opacity: 0;
                            }
                        }

                        &.gray {
                            background: #989898;
                        }
                    }
                }
            }
        }
    }
}

// 标签页控制器
.tab_ctr {
    position: fixed;
    width: 100%;
    height: 80rpx;
    border-bottom: 2rpx #f2f2f2 solid;
    font-size: 32rpx;
    z-index: 9;
    background: #fcfaee;

    .tab_ctt {
        position: absolute;
        width: 100%;
        height: 82rpx;
        left: 0;
        top: 0;
        z-index: 9;

        .tab_cell,
        .tab_cell_on {
            float: left;
            width: 33.33%;
            height: 76rpx;
            line-height: 76rpx;
            text-align: center;
            padding-bottom: 6rpx;
        }

        .tab_cell_on {
            padding-bottom: 0rpx;
            border-bottom: 4rpx solid #ff6b6b;
            color: #ff6b6b;
        }
    }
}

// 背景图样式
._page_index_bg_box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

    .bg {
        width: 100%;
        height: 100%;
    }
}

// 优惠券样式
.coupon_ctr {
    float: left;
    width: 710rpx;
    height: auto;
    margin: 10rpx 20rpx;

    // 优惠券内容区
    .coupon_ctt,
    .coupon_ctt1 {
        float: left;
        width: 670rpx;
        border-radius: 10rpx 10rpx 0 0;
        padding: 20rpx;
        color: #fff;
        background: #ff6b6b;

        // 已使用/已过期优惠券样式
        &.coupon_ctt1 {
            background: #999999;
        }

        // 优惠券价格区
        .coupon_price {
            float: left;
            width: 250rpx;
            height: 115rpx;
            border-right: 2rpx #fff dotted;
            text-align: center;
            font-size: 44rpx;

            span,
            .txt {
                font-size: 28rpx;
            }
        }

        // 优惠券标题区
        .coupon_title {
            float: right;
            width: 398rpx;
            padding-top: 8rpx;
            font-size: 36rpx;
            position: relative;

            .txt {
                font-size: 28rpx;
                padding-top: 8rpx;
            }

            // 按钮样式
            .coupon_btn {
                position: absolute;
                border-radius: 6px;
                font-size: 32rpx;
                right: 0;
                top: 0;
                z-index: 9;
                padding: 0 10rpx;
                background: rgba(255, 255, 255, 0.3);
            }
        }
    }

    // 优惠券信息区
    .coupon_info {
        float: left;
        width: 670rpx;
        background: #fff;
        padding: 20rpx;
        font-size: 28rpx;
        color: #999;
        border-radius: 0 0 10rpx 10rpx;
    }
}

// 引入通用样式
@import "/style/style.wxss";